package com.xyzwps.orm.jpa;

import javax.persistence.EntityManager;
import javax.persistence.EntityManagerFactory;
import javax.persistence.Persistence;

public class App {

    private final EntityManagerFactory emFactory;

    public App() {
        this.emFactory = Persistence.createEntityManagerFactory("hibernate");
    }

    public EntityManager getEntityManager() {
        return emFactory.createEntityManager();
    }
}
